package com.young.springdemo.service.commandchain;

import org.springframework.util.StringUtils;

/**
 * @author Young
 * @description 职责链接口
 * @date 18:06 2020/5/6
 * @return
 **/
public abstract class Approve {
    protected Approve success;
    protected String name;

    public Approve() {
    }

    public Approve(String name) {
        this.name = name;
    }

    //设置后继者
    protected void setApprove(Approve approve){
        this.success = approve;
    }

    //设置请求者
    protected abstract void processRequest(PurchaseRequest purchaseRequest);
}
